home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
CachedViewEditor.h
< prev
next >
Wrap
Text File
|
1996-12-01
|
2KB
|
78 lines
/*
* File: CachedViewEditor.h
* Summary: A view that knows how to edit a TCachedView.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 12/01/96 JDJ Created
*/
#pragma once
#include <ZCachedView.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditCachedViewCommand
// ===================================================================================
class CEditCachedViewCommand : public CBaseEditPaneCommand<TCachedView, SCachedViewInfo> {
typedef CBaseEditPaneCommand<TCachedView, SCachedViewInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditCachedViewCommand();
CEditCachedViewCommand(TCachedView* pane, const SCachedViewInfo& oldInfo, const SCachedViewInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SCachedViewInfo& newInfo);
};
// ===================================================================================
// CCachedViewEditor
// ===================================================================================
class CCachedViewEditor : public CBasePaneEditor<TCachedView, SCachedViewInfo, CEditCachedViewCommand> {
typedef CBasePaneEditor<TCachedView, SCachedViewInfo, CEditCachedViewCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CCachedViewEditor();
CCachedViewEditor(TView* superView);
//-----------------------------------
// Inherited API
//
public:
virtual bool Validate();
protected:
virtual SCachedViewInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SCachedViewInfo& info);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
};